﻿#pragma warning(disable: 4996)
#pragma warning(disable: 6031)

/*
*/

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

typedef struct TContext_s
{
	int n;
	int scores[10001];
	double average;
}TContext;

TContext context;

void read_data(TContext* ctx)
{
	scanf("%d", &ctx->n);
}

void dump(TContext* ctx)
{
}

void exchange(TContext* ctx)
{
	int m = 0;
	for (int i = ctx->n / 5; i > 0; --i)
		for (int j = (ctx->n - 5 * i) / 2; j > 0; --j)
		{
			int k = ctx->n - 5 * i - 2 * j;
			if (k > 0) {
				printf("fen5:%d, fen2:%d, fen1:%d, total:%d\n", i, j, k, i + j + k);
				m++;
			}
		}
	printf("count = %d\n", m);
}

void solve(TContext* ctx)
{
	read_data(ctx);
	exchange(ctx);
}

int main()
{
	freopen("D:/Develop/GitRepos/MOOC/浙江大学/数据结构/201906/DataStructure/M2019秋C入门和进阶练习集/7-96.txt", "r", stdin);
	solve(&context);
	return 0;
}
